stochastic similarity filter